#include "mvDirAndCreateMap.h"
#include <filesystem>
namespace fs = std::filesystem;


mvDirAndCreateMap::mvDirAndCreateMap() {}

void mvDirAndCreateMap::readDirJson(std::string path)
{

    fs::path targetFolder(path);
    for (const auto& entry : fs::directory_iterator(targetFolder)) {
        if (fs::is_directory(entry)) {
            WRLJson js;
            js.dir_path = entry.path().string();
            js.wrl_name = entry.path().filename().string();

            targetList.emplace_back(js);
        }
    }
}
